<?php
/**
 * Created by jinqiang on 2025/1/2 9:10.
 * Copyright (c) 2025, Your Company. All rights reserved.
 */


namespace App\Http\Controllers\Callback;


use App\Http\Controllers\Controller;
use App\Http\Services\Callback\NNuoService;
use Illuminate\Http\Request;

class NNuoController extends Controller
{
    public function invoice(Request $request, NNuoService $NNuoService)
    {
        $this->validate($request, [
            'operater' => 'required|in:callback',
            'content' => 'required',
            'orderno' => 'required'
        ]);
        $param = $request->all();
        info("爱信诺开票回调", [$param]);
        $NNuoService->invoice($param);
        return success();
    }
}
